﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HROReporting.Model.Docenten;
using HROReporting.Services.ViewModels;
using AutoMapper;

namespace HROReporting.Services.Mapping
{
    public static class DocentMapper
    {
        public static DocentView ConvertToDocentIndexView(this Docent student)
        {
            return Mapper.Map<Docent, DocentView>(student);
        }

        public static DocentView ConvertToDocentView(this Docent student)
        {
            return Mapper.Map<Docent, DocentView>(student);
        }

        public static IEnumerable<DocentView> ConvertToDocentIndexView(this IEnumerable<Docent> docenten)
        {
            return Mapper.Map<IEnumerable<Docent>, IEnumerable<DocentView>>(docenten);
        }
    }
}
